<template>
  <div class="not-found">
    <div class="content">
      <h1>404</h1>
      <div class="desc">抱歉，您访问的页面不存在</div>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
  methods: {
    goHome() {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="scss" scoped>
.not-found {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f2f5;
  
  .content {
    text-align: center;
    
    h1 {
      font-size: 120px;
      color: #409EFF;
      margin: 0;
      line-height: 1.2;
    }
    
    .desc {
      font-size: 20px;
      margin: 20px 0 30px;
      color: #606266;
    }
  }
}
</style> 